<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
	xmlns:b="http://bootsfaces.net/ui"
	template="/templates/layout_mb.xhtml">

	<ui:define name="pcontent">
	<b:well>
	<h4>&#160;待签收货单【#{mobileReceiptMB.voList.size()}】</h4>
	<h:form>				
		<p:dataList id="wDatalist" value="#{mobileReceiptMB.voList}"  
			var="row" type="ordered" rowIndexVar="rowNum" paginator="true" paginatorPosition="bottom">
			<p:commandLink action="mb_receipt_sign.xhtml?faces-redirect=true" >
			    <!-- <p:graphicImage name="images/msign.gif" />  -->
                  	<h5 style="font-weight:bold">收货单号：#{row.id}</h5>
                  	<p style="color:blue;">供应商：#{row.supplier}</p>
                  	<p style="color:blue;">合同名称：#{row.contName}</p>
				<f:setPropertyActionListener value="#{row}"
					target="#{mobileReceiptMB.selectedReceipt}" />	
				<f:setPropertyActionListener value="#{rowNum}"
					target="#{mobileReceiptMB.rowNum}" />							
			</p:commandLink>
			<p:separator />
		</p:dataList>
	<br />
		<h:panelGrid columns="2" cellspacing="30" styleClass="btnCenter">
			<p:commandButton id="btnQuery" value="刷新" icon="ui-icon-refresh"							
				action="#{mobileReceiptMB.queryTasks}" update="wDatalist"
				style="font-size:16px;color:white;background-color:#3366AA;">
			</p:commandButton>
			<p:button outcome="home_mb.xhtml" value="主页" icon="ui-icon-home"  style="font-size:16px;color:white;background-color:#3366AA;"/>
		</h:panelGrid>				
	</h:form>
	</b:well>
	</ui:define>

</ui:composition>